package net.maku.module.util;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@ConfigurationProperties(prefix = "url.replace")
public class UrlReplaceConfig {
    
    private List<String> sourceUrls = new ArrayList<>();
    private String targetUrl;
    
    // getters and setters
    public List<String> getSourceUrls() {
        return sourceUrls;
    }
    
    public void setSourceUrls(List<String> sourceUrls) {
        this.sourceUrls = sourceUrls;
    }
    
    public String getTargetUrl() {
        return targetUrl;
    }
    
    public void setTargetUrl(String targetUrl) {
        this.targetUrl = targetUrl;
    }
}